import uvicorn
from fastapi import FastAPI

app = FastAPI()

# 路由分发配置
from api.ym1.ym1 import app_ym1
app.include_router(app_ym1, prefix='/ym1')


@app.get("/")
async def home():
    return {"message": "欢迎进入我的首页"}


if __name__ == "__main__":
    uvicorn.run("main:app", host='127.0.0.1', port=8080, reload=True)
